package com.cjl.net;

import android.content.Context;

public class Client {
    private final Request request;
    private final Response response;
    private final Config config;
    private final Context context;

    public Client(Request request, Response response, Config config, Context context) {
        this.request = request;
        this.response = response;
        this.config = config;
        this.context = context;
    }

    public void request(String url){
        if (request != null){
            request.request(context,config,url,response);
        }
    }
}
